﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using ConsoleClient.svr;
namespace ConsoleClient
{
    class Callback : IServiceCallback
    {

        #region IServiceCallback Members

        public void Message(string message1)
        {
            Console.WriteLine("Message:"+message1);
        }

        #endregion
    }
    class Program
    {

        static void Main()
        {
            
            ServiceClient svc = new ServiceClient(new InstanceContext(new Callback()));
            svc.Open();
            svc.Start();
            svc.Login("아이딩");
            svc.InitGame();
            svc.RollDice();
            svc.Buy();
            svc.Sell();
            svc.Quit();
            Console.ReadLine();
            svc.Close();
        }

    }
}